package regex;

import java.util.Arrays;

public class Demo_RegexTest {
    public static void main(String[] args) {
        String str = "91 27 46 38 50";
        String[] arr = str.split("\\s");
        for (int i = 0; i < arr.length; i++) {
            System.out.println("arr["+i+"]"+"=" + arr[i]);
        }
        Arrays.sort(arr);

        for (String value:
             arr) {
            System.out.println("value = " + value);
        }
    }
}
